package com.googlecode.maratische.google.gui;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;


public class SourceCodeFrame extends JFrame {

	private static final long serialVersionUID = -3631786165953653617L;
	
	private JTextArea textArea = new JTextArea();
	
	public SourceCodeFrame() {
		setSize(500, 500);
		setTitle("");
		setLayout(new GridLayout(1, 1));
		JScrollPane scrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		add(scrollPane);
		textArea.setWrapStyleWord(false);
	}
	
	public void setDescription(String description) {
		textArea.setText(description);
	}
}
